<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>右键菜单</title>
  <style>
    body {
      height: 1000px;
      background: #ccc;
    }
  </style>
</head>
<body>
  <script src="./dist/inde.umd.js"></script>
  <script>
    const cr = new contextMenuPlus.ContextMenu(document, (ev) => {
      return [{
        id: '1',
        label: `x: ${ev.clientX} y: ${ev.clientY}`
      }]
    }, (id, data) => {
      console.log(id,data)
    })
  </script>
</body>
</html>